//
//  WZUserModel.h
//  weibo
//
//  Created by mac on 16/2/27.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WZUserInfoModel.h"

typedef void(^finished)();

@interface WZUserViewModel : NSObject

@property(nonatomic,strong)WZUserInfoModel *userModel;
@property(nonatomic,assign)BOOL isLogin;


-(void)getAccessTokenWithCode:(NSString *)code andSuccess:(finished) success andFaile:(finished)fail;
-(void)getUserInfoWithUserModel:(WZUserViewModel *)userModel andSuccess:(finished) success andFaile:(finished)fail;

+(instancetype)shareInstance;
@end
